import java.util.Scanner;

public class Test3 {
    public static void main(String[] args) {
        // int x=1;
        // int y=5;
        // int max=(x>y)?x:y;
        // int min=(x<y)?x:y;
        // System.out.println("max:"+max);
        // System.out.println("min:"+min);
        Scanner scanner=new Scanner(System.in);
        int a=scanner.nextInt();
        int b=scanner.nextInt();
        System.out.println("a="+a);
        System.out.println("b="+b);
        
        String s1=(a>b)?"a="+a:"b="+b;
        String s2=(a<b)?"a="+a:"b="+b;
        System.out.println("最大值是" +s1);
        System.out.println(s2 + "是最小值");
    }
}
